<?php
ini_set('display_errors', 'On'); //Off,On
error_reporting(E_ALL); //0,E_ALL & ~E_NOTICE
try{
//定义代码路径
define('APPLICATION_ROOT', dirname(dirname(dirname(dirname(__FILE__)))));
define('CORE_ROOT', dirname(dirname(dirname(dirname(dirname(__FILE__))))) . '/core');
date_default_timezone_set('Asia/Shanghai');
//定义默认控制
defined('ACT')			||	define('ACT', basename(dirname(__FILE__)));
defined('YEAR')			||	define('YEAR', basename(dirname(dirname(__FILE__))));
defined('ACT_TITLE')	||	define('ACT_TITLE', '女生节');
defined('ACT_FILE')		||	define('ACT_FILE', basename( dirname(dirname(__FILE__)) ).'/'.ACT);/*当前活动所在的act.xx5.com/wwwroot/下的位置*/
defined('ACT_PATH')		||	define('ACT_PATH', basename( dirname(dirname(__FILE__)) ).'/'.ACT);
define('DEFAULT_CONTROL', ACT_FILE.'/index');

require_once(CORE_ROOT . '/runtime.php');
}catch (ExceptionBox $e){
	echo $e->getMessage();
}
?>
